package com.weds.edpf.core.service;

import com.weds.core.base.BaseService;
import com.weds.edpf.core.entity.NTkqRoomEntity;
import com.weds.edpf.core.mapper.NTkqRoomMapper;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author sxm
 * @Description TkqRoom管理
 * @Date 2020-06-11
 */
@Service
public class NTkqRoomService extends BaseService {

	@Autowired
	private NTkqRoomMapper NTkqRoomMapper;

	private Logger log = LogManager.getLogger();

	public int deleteByPrimaryKey(Integer depSerial) {
		return NTkqRoomMapper.deleteByPrimaryKey(depSerial);
	}

	public int insert(NTkqRoomEntity record) {
		return NTkqRoomMapper.insert(record);
	}

	public int insertSelective(NTkqRoomEntity record) {
		return NTkqRoomMapper.insertSelective(record);
	}

	public NTkqRoomEntity selectByPrimaryKey(Integer depSerial) {
		return NTkqRoomMapper.selectByPrimaryKey(depSerial);
	}

	public int updateByPrimaryKeySelective(NTkqRoomEntity record) {
		return NTkqRoomMapper.updateByPrimaryKeySelective(record);
	}

	public int updateByPrimaryKey(NTkqRoomEntity record) {
		return NTkqRoomMapper.updateByPrimaryKey(record);
	}

    	public List<NTkqRoomEntity> selectListByEntity(NTkqRoomEntity record) {
		return NTkqRoomMapper.selectListByEntity(record);
	}
	
	

        public int deleteBatchByKeys(List<NTkqRoomEntity> list) {
        return NTkqRoomMapper.deleteBatchByKeys(list);
    }
    
    	public int insertBatch(List<NTkqRoomEntity> list) {
		return NTkqRoomMapper.insertBatch(list);
	}

	public int countDepRoom(Integer depSerial) {
		return NTkqRoomMapper.countDepRoom(depSerial);
	}
	}
